package com.night.common.entity.card;

import com.night.common.entity.card.group.AddGroup;
import lombok.Data;

import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @ClassName: CardIn
 * @Description: 一卡通充值记录实体类
 * @author: CHX42
 * @date: 2022/10/19-9:32
 * @version: v1.0
 */
@Data
public class CardIn implements Serializable {
    private Integer id;
    private String inTime;
    @Positive(message = "充值金额必须为正数", groups = {AddGroup.class})
    private BigDecimal inMoney;
    private Integer inMachineId;
    private Integer cardId;
    /**
     * @Description card 用于查询时带出实体卡参数
     **/
    private Card card;
    /**
     * @Description cardInMachine 用于查询时带出充值机参数
     **/
    private CardInMachine cardInMachine;
}
